class MyClass:
    def print_class_name(self):
        print(self.__class__.__name__)

    # 创建一个MyClass的实例


my_instance = MyClass()

# 调用print_class_name方法来打印类名
my_instance.print_class_name()  # 输出: MyClass